#ifndef __UART3_H
#define __UART3_H

#include <stm32f4xx.h>

void TX2_USART3_Init(void);
void TIM2_Configuration(void);
void USART3_IRQHandler(void);
void TX2_Transmit_Start(void);
void TX2_Data_Send(void);

extern u8 NewData_flag,follow_flag,color_flag;
extern u16 fps_count;
typedef struct
{
  volatile u8 USART_RX_STA;
  volatile u8 USART_TX_COUNT;
  volatile u8 USART_WAIT_COUNT;
  u8 USART_RX_BUF[6];
  u8 USART_TX_BUF[100];
} USART_BUFTypeDef;
extern USART_BUFTypeDef USART_1,USART_2,USART_3;
extern u8 analyze_command(void);
extern u16 t1,t2,t3;
extern float x_angle_error,y_angle_error,distance;

#endif
